
#chat{
    margin: 0 auto;
    width: 500px;
    /*box-shadow: 0px 0px 5px #F0EFEF;*/
    border: 1px solid #F0EFEF;
}

.chat-title{
    width: 100%;
    height: 40px;
    margin: 0 auto;
    background-color: #EEEEEE;
    overflow: hidden;
    position: relative;
    text-indent: 2em;
    line-height: 40px;
    font-size: 14px;
}

.chat-main {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    height: 320px;
    margin: 0 auto;
    padding-bottom: 10px;
}
.left_top_head{
    overflow: hidden;
}
.left_top_head span{
    background: #fff69b;
    border-radius: 4px;
    padding: 5px;
    line-height: 22px;
    margin: 10px 0 0 6px;
    min-height: 22px;
    float: left;
    overflow: hidden;
    font-size: 9pt;
}
.chat_time {
    margin: 0 auto;
    width: 100px;
    color: #9d9d9d;
    text-align: center;
    overflow: hidden;
    height: 24px;
    line-height: 24px;
}
.message{
    padding: 0 5px;
    margin-top: 5px;
    overflow:hidden;
}
.message span{
    word-wrap: break-word;
    max-width: 50%;
    clear: both;
    padding: 2px 10px;
    border-radius: 4px;
    padding: 5px;
}
.message .left{
    float: left;
    background: #ADDC40;
}
.message .right{
    float: right;
    background: #E5E5E5;
}


.chat-toolbar{
    width: 100%;
    height: 27px;
    margin: 0 auto;
    background-color: #F6F6F6;
}

.chat-textarea{
    width: 100%;
    height: 94px;
    overflow: hidden;
    margin: 0 auto;
}
.chat-textarea textarea {
    overflow-y: auto;
    height: 90px;
    width: 99%;
    float: left;
    margin: 0;
    padding: 3px 2px 2px 6px;
    font-family: "Microsoft YaHei";
    color: #000;
    border: 0;
    font-size: 10pt;
    outline: 0;
}

.chat-foot{
    width: 100%;
    _width: 100%;
    overflow: hidden;
    height: 31px;
    line-height: 31px;
    margin: 0 auto;
    background-color: #FAFAFA;
}
.chat-foot .btns{
    float: right;
    margin-right: 10px;
}


.new-message{
    animation: myfirst 0.7s infinite;
    -moz-animation: myfirst 0.7s infinite;	/* Firefox */
    -webkit-animation: myfirst 0.7s infinite;	/* Safari 和 Chrome */
    -o-animation: myfirst 0.7s infinite;	/* Opera */
}
@keyframes myfirst
{
    0%   {color: #000;}
    100% {color: #FFF;}
}

@-moz-keyframes myfirst /* Firefox */
{
    0%   {color: #000;}
    100% {color: #FFF;}
}

@-webkit-keyframes myfirst /* Safari 和 Chrome */
{
    0%   {color: #000;}
    100% {color: #FFF;}
}

@-o-keyframes myfirst /* Opera */
{
    0%   {color: #000;}
    100% {color: #FFF;}
}